﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace <%=namespace%>
{
    [SugarTable("<%=table_name%>")]
    public class <%=model_name%>
    {
        <%for(var i = 0; i < fields.length; i++) {%>
        /// <summary><%commentArr = fields[i].column_comment.split('\n')%><%for(var j=0;j<commentArr.length;j++) {%>
        /// <%=commentArr[j].replace('\n','').replace('\r','')%><%}%>
        /// </summary><%if(fields[i].column_key=="PRI") {%>}
        [SugarColumn(IsPrimaryKey = true)]<%}%>
        public <%=datatype.parse(fields[i].data_type)%> <%=fields[i].column_name%> { get; set; }
        <%}%>
    }
}